package com.springbootcrud.user.entity;

import java.util.Date;

/**
 * Created by Sun on 2020/4/10.
 */
public class Crud {
    private Integer id;
    private String username;
    private String password;
    private Date createtime;
    private Integer status;

    public Crud() {
    }

    public Crud(Integer id, String username, String password, Date createtime, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.createtime = createtime;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Crud{");
        sb.append("id=").append(id);
        sb.append(", username='").append(username).append('\'');
        sb.append(", password='").append(password).append('\'');
        sb.append(", createtime=").append(createtime);
        sb.append(", status=").append(status);
        sb.append('}');
        return sb.toString();
    }
}
